<%@page import="helpers.LanguageHelper"%>
<%@page import="helpers.StringHelper"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="entities.Page"%>
<%
Page terms = (Page) request.getAttribute("terms");

//Set content for seo
String nameServer = UrlHelper.getDomainServer(request);
String title = terms.getTitle() + " - " + nameServer;
String description = StringHelper.cutString(StringHelper.html2text(terms.getContent()), 50) ;
String keywords = LanguageHelper.getString("terms_seo_keywords");
String url = UrlHelper.getServerUrl(request) + "/terms";
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="keywords" value="<%=keywords %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>
            
            <div id="mainContent" class="left">
            	<div id="errorPage">
                	<h3 class="title"><%=terms.getTitle() %></h3>
                    <%=terms.getContent() %>
                </div>
            </div>
            
            <jsp:include page="/elements/right.jsp" />
            
            <div class="clearbreak"></div>
<jsp:include page="/layouts/footer.jsp" />